package tools

import "gitee.com/johng/gf/g/net/ghttp"

type alonApi struct {
	Code int         `json:"code"`
	Data interface{} `json:"data"`
	Msg  string      `json:"msg"`
}

func (a *alonApi) Return(r *ghttp.Request) {
	r.Response.WriteJson(a)
}
